<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Repetier-Firmware: src/ArduinoAVR/Repetier/Commands.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="icon128.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_commands_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Commands.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_commands_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">    This file is part of Repetier-Firmware.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">    Repetier-Firmware is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">    it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">    the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">    (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">    Repetier-Firmware is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    GNU General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">    You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">    along with Repetier-Firmware.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">    This firmware is a nearly complete rewrite of the sprinter firmware</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">    by kliment (https://github.com/kliment/Sprinter)</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">    which based on Tonokip RepRap firmware rewrite based off of Hydra-mmm firmware.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">  Functions in this file are used to communicate using ascii or repetier protocol.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef COMMANDS_H_INCLUDED</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define COMMANDS_H_INCLUDED</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_commands.html">   27</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_commands.html">Commands</a></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#abf02c68c3b21c8f5b8b3dda7b08bf302">commandLoop</a>();</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a867b2dcbe36145af31cdcf58fe8a2d9a">checkForPeriodicalActions</a>(<span class="keywordtype">bool</span> allowNewMoves);</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a349079e80e40b971404f5819251dc071">processArc</a>(<a class="code" href="class_g_code.html">GCode</a> *com);</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#ae5c3b5bf55bf9b978df28f24ca9246ad">processGCode</a>(<a class="code" href="class_g_code.html">GCode</a> *com);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#aeaded181861c5a2f1967afdbdd85afea">processMCode</a>(<a class="code" href="class_g_code.html">GCode</a> *com);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a899f44fd709a25844fd465de810121b6">executeGCode</a>(<a class="code" href="class_g_code.html">GCode</a> *com);</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a10cc0ee7f20a4d10a7d422a3caf87417">waitUntilEndOfAllMoves</a>();</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#ada7397541abc46e6ef81ce66f145184d">waitUntilEndOfAllBuffers</a>();</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#adb625e5c6a272a1147acbdcbccc6fe2e">printCurrentPosition</a>();</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#af8438dafa817a8025717b3f0d57b7fa1">printTemperatures</a>(<span class="keywordtype">bool</span> showRaw = <span class="keyword">false</span>);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#ab84bcd02837b755c68a29f9bbf932001">setFanSpeed</a>(<span class="keywordtype">int</span> speed, <span class="keywordtype">bool</span> immediately = <span class="keyword">false</span>); </div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a8c23afc4a333af37a7794359e98acd6f">setFan2Speed</a>(<span class="keywordtype">int</span> speed); </div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#acd3a9910b4ed90389e8246140a0c0389">changeFeedrateMultiply</a>(<span class="keywordtype">int</span> factorInPercent);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a228ff290a64221d24937f228f5f3b25b">changeFlowrateMultiply</a>(<span class="keywordtype">int</span> factorInPercent);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a83ca027525bc008bef4f82a988132216">reportPrinterUsage</a>();</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#a123a8fae2b76c48d6067618ae522e06e">emergencyStop</a>();</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#aab4bacbbff271f37373468966e7d9f2b">checkFreeMemory</a>();</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_commands.html#ad462eb4e90a63c9aecefe2c164914e9c">writeLowestFreeRAM</a>();</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_commands.html#ac8026a9bb2424d064683693afd02e2ea">   49</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_commands.html#ac8026a9bb2424d064683693afd02e2ea">lowestRAMValue</a>;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_commands.html#a07050c3e78007c00a432983d33e52db6">   50</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_commands.html#a07050c3e78007c00a432983d33e52db6">lowestRAMValueSend</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;};</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#endif // COMMANDS_H_INCLUDED</span></div><div class="ttc" id="class_commands_html_abf02c68c3b21c8f5b8b3dda7b08bf302"><div class="ttname"><a href="class_commands.html#abf02c68c3b21c8f5b8b3dda7b08bf302">Commands::commandLoop</a></div><div class="ttdeci">static void commandLoop()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:28</div></div>
<div class="ttc" id="class_commands_html_ae5c3b5bf55bf9b978df28f24ca9246ad"><div class="ttname"><a href="class_commands.html#ae5c3b5bf55bf9b978df28f24ca9246ad">Commands::processGCode</a></div><div class="ttdeci">static void processGCode(GCode *com)</div><div class="ttdoc">Execute the G command stored in com. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:884</div></div>
<div class="ttc" id="class_commands_html_aeaded181861c5a2f1967afdbdd85afea"><div class="ttname"><a href="class_commands.html#aeaded181861c5a2f1967afdbdd85afea">Commands::processMCode</a></div><div class="ttdeci">static void processMCode(GCode *com)</div><div class="ttdoc">Execute the G command stored in com. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:1493</div></div>
<div class="ttc" id="class_g_code_html"><div class="ttname"><a href="class_g_code.html">GCode</a></div><div class="ttdef"><b>Definition:</b> gcode.h:91</div></div>
<div class="ttc" id="class_commands_html_a8c23afc4a333af37a7794359e98acd6f"><div class="ttname"><a href="class_commands.html#a8c23afc4a333af37a7794359e98acd6f">Commands::setFan2Speed</a></div><div class="ttdeci">static void setFan2Speed(int speed)</div><div class="ttdoc">Set fan speed 0..255. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:257</div></div>
<div class="ttc" id="class_commands_html_a83ca027525bc008bef4f82a988132216"><div class="ttname"><a href="class_commands.html#a83ca027525bc008bef4f82a988132216">Commands::reportPrinterUsage</a></div><div class="ttdeci">static void reportPrinterUsage()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:265</div></div>
<div class="ttc" id="class_commands_html_acd3a9910b4ed90389e8246140a0c0389"><div class="ttname"><a href="class_commands.html#acd3a9910b4ed90389e8246140a0c0389">Commands::changeFeedrateMultiply</a></div><div class="ttdeci">static void changeFeedrateMultiply(int factorInPercent)</div><div class="ttdoc">Set fan speed 0..255. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:214</div></div>
<div class="ttc" id="class_commands_html_adb625e5c6a272a1147acbdcbccc6fe2e"><div class="ttname"><a href="class_commands.html#adb625e5c6a272a1147acbdcbccc6fe2e">Commands::printCurrentPosition</a></div><div class="ttdeci">static void printCurrentPosition()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:135</div></div>
<div class="ttc" id="class_commands_html_ada7397541abc46e6ef81ce66f145184d"><div class="ttname"><a href="class_commands.html#ada7397541abc46e6ef81ce66f145184d">Commands::waitUntilEndOfAllBuffers</a></div><div class="ttdeci">static void waitUntilEndOfAllBuffers()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:106</div></div>
<div class="ttc" id="class_commands_html_a349079e80e40b971404f5819251dc071"><div class="ttname"><a href="class_commands.html#a349079e80e40b971404f5819251dc071">Commands::processArc</a></div><div class="ttdeci">static void processArc(GCode *com)</div><div class="ttdoc">Execute the Arc command stored in com. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:768</div></div>
<div class="ttc" id="class_commands_html_a10cc0ee7f20a4d10a7d422a3caf87417"><div class="ttname"><a href="class_commands.html#a10cc0ee7f20a4d10a7d422a3caf87417">Commands::waitUntilEndOfAllMoves</a></div><div class="ttdeci">static void waitUntilEndOfAllMoves()</div><div class="ttdoc">Waits until movement cache is empty. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:94</div></div>
<div class="ttc" id="class_commands_html_ad462eb4e90a63c9aecefe2c164914e9c"><div class="ttname"><a href="class_commands.html#ad462eb4e90a63c9aecefe2c164914e9c">Commands::writeLowestFreeRAM</a></div><div class="ttdeci">static void writeLowestFreeRAM()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:2671</div></div>
<div class="ttc" id="class_commands_html_ac8026a9bb2424d064683693afd02e2ea"><div class="ttname"><a href="class_commands.html#ac8026a9bb2424d064683693afd02e2ea">Commands::lowestRAMValue</a></div><div class="ttdeci">static int lowestRAMValue</div><div class="ttdef"><b>Definition:</b> Commands.h:49</div></div>
<div class="ttc" id="class_commands_html_af8438dafa817a8025717b3f0d57b7fa1"><div class="ttname"><a href="class_commands.html#af8438dafa817a8025717b3f0d57b7fa1">Commands::printTemperatures</a></div><div class="ttdeci">static void printTemperatures(bool showRaw=false)</div><div class="ttdef"><b>Definition:</b> Commands.cpp:157</div></div>
<div class="ttc" id="class_commands_html_a123a8fae2b76c48d6067618ae522e06e"><div class="ttname"><a href="class_commands.html#a123a8fae2b76c48d6067618ae522e06e">Commands::emergencyStop</a></div><div class="ttdeci">static void emergencyStop()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:2625</div></div>
<div class="ttc" id="class_commands_html"><div class="ttname"><a href="class_commands.html">Commands</a></div><div class="ttdef"><b>Definition:</b> Commands.h:27</div></div>
<div class="ttc" id="class_commands_html_a867b2dcbe36145af31cdcf58fe8a2d9a"><div class="ttname"><a href="class_commands.html#a867b2dcbe36145af31cdcf58fe8a2d9a">Commands::checkForPeriodicalActions</a></div><div class="ttdeci">static void checkForPeriodicalActions(bool allowNewMoves)</div><div class="ttdef"><b>Definition:</b> Commands.cpp:61</div></div>
<div class="ttc" id="class_commands_html_a228ff290a64221d24937f228f5f3b25b"><div class="ttname"><a href="class_commands.html#a228ff290a64221d24937f228f5f3b25b">Commands::changeFlowrateMultiply</a></div><div class="ttdeci">static void changeFlowrateMultiply(int factorInPercent)</div><div class="ttdef"><b>Definition:</b> Commands.cpp:222</div></div>
<div class="ttc" id="class_commands_html_aab4bacbbff271f37373468966e7d9f2b"><div class="ttname"><a href="class_commands.html#aab4bacbbff271f37373468966e7d9f2b">Commands::checkFreeMemory</a></div><div class="ttdeci">static void checkFreeMemory()</div><div class="ttdef"><b>Definition:</b> Commands.cpp:2665</div></div>
<div class="ttc" id="class_commands_html_ab84bcd02837b755c68a29f9bbf932001"><div class="ttname"><a href="class_commands.html#ab84bcd02837b755c68a29f9bbf932001">Commands::setFanSpeed</a></div><div class="ttdeci">static void setFanSpeed(int speed, bool immediately=false)</div><div class="ttdef"><b>Definition:</b> Commands.cpp:240</div></div>
<div class="ttc" id="class_commands_html_a899f44fd709a25844fd465de810121b6"><div class="ttname"><a href="class_commands.html#a899f44fd709a25844fd465de810121b6">Commands::executeGCode</a></div><div class="ttdeci">static void executeGCode(GCode *com)</div><div class="ttdoc">Execute the command stored in com. </div><div class="ttdef"><b>Definition:</b> Commands.cpp:2583</div></div>
<div class="ttc" id="class_commands_html_a07050c3e78007c00a432983d33e52db6"><div class="ttname"><a href="class_commands.html#a07050c3e78007c00a432983d33e52db6">Commands::lowestRAMValueSend</a></div><div class="ttdeci">static int lowestRAMValueSend</div><div class="ttdef"><b>Definition:</b> Commands.h:50</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_cdf0096ae548159f0698b0a71289cf6c.html">ArduinoAVR</a></li><li class="navelem"><a class="el" href="dir_360d65efbdba454d299657bac363b72c.html">Repetier</a></li><li class="navelem"><a class="el" href="_commands_8h.html">Commands.h</a></li>
    <li class="footer">Generated on Tue Sep 19 2017 18:54:00 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
